package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap41 extends OSMap
	{
		public function OSMap41()
		{
			super();

			var ground:OSGround = new OSGround(0, 780, 480, 300, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]);
			ground.setNoErosionDown([336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359]);
			ground.setNoErosionLeft([0, 24, 48, 72, 96, 120, 144, 168, 192, 216, 240, 264, 288, 312, 336]);
			ground.erode();
			add(ground);

			add(new OSBridge(480, 800, 16, 5, true));

			ground = new OSGround(480, 1060, 320, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(800, 780, 160, 300, 0, false);
			ground.setNoErosionDown([112, 113, 114, 115, 116, 117, 118, 119]);
			ground.setNoErosionLeft([8, 112]);
			ground.setNoErosionRight([7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119]);
			ground.erode();
			add(ground);

			var house:OSHouse = new OSHouse(0, 560);
			addBackground(house.background);
			addForeground(house);

		}
	}
}
